import unittest
import ddt

@ddt.ddt
class DemoTestCase(unittest.TestCase):
    # 测试数据
    data_list = [
        {'username':'fine1','password':'123456'},
        {'username':'fine2','password':'123456'}
    ]

    @ddt.data(*data_list)
    def tets_login(self,data):
        print(data)

if __name__ == '__main__':
    unittest.main(verbosity=2)